<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#d3{
				width: 100%;
				height: 800px;
				display: flex;
				justify-content: center;
				margin-top: 200px;
			}
			#d2{
				width: 600px;
				height: 100px;
				overflow: hidden;
			}
			#d1{
				width: 1600px;
				height: 100px;
				display: flex;
			}
			#d1 img{
				width: 100px;
				height: 100px;
			}
		</style>
	</head>
	<body>
		<div id="d3">
			<div id="d2">
				<div id="d1" onmouseenter="in_img()" onmouseleave="out_img()">
					<img src="img/1.jpeg" >
					<img src="img/2.jpeg" >
					<img src="img/3.jpeg" >
					<img src="img/4.jpeg" >
					<img src="img/5.jpeg" >
					<img src="img/6.jpeg" >
					<img src="img/7.jpeg" >
					<img src="img/8.jpeg" >
					<img src="img/9.jpeg" >
					<img src="img/10.jpeg" >
					<img src="img/1.jpeg" >
					<img src="img/2.jpeg" >
					<img src="img/3.jpeg" >
					<img src="img/4.jpeg" >
					<img src="img/5.jpeg" >
					<img src="img/6.jpeg" >
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript">
		var dd1 = document.getElementById('d1');
		var m = 0 ;
		var flag = true ;
		var flag2 = true ;
		function in_img(){
			flag = false ;
			flag2 = false ;
		}
		function out_img(){
			flag = true ;
			flag2 = true ;
		}
		function aa(){
			if(flag == true){
				if(m == -1000){
					m = 0 ;
				}
				m--;
				dd1.style.marginLeft = m + 'px' ;
				if(m % 100 == 0){
					flag = false ;
					setTimeout(function(){
						flag = true ;
						if(flag2 == false){
							flag = false ;
						}
					},1000)
				}
			}
		}
		onload = function(){
			si = setInterval(aa,10)
		}
	</script>
</html>
